home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
pgm_ctrl
/
cuactrls
/
cuademo.bas
< prev
next >
Wrap
BASIC Source File
|
1995-03-17
|
606b
|
29 lines
Option Explicit
Global Const BOKW = 1
Global Const TABW = 2
Global Const MAIW = 3
Global Const LBLW = 4
Global DatabaseName$
Global Const HELP_CONTENTS = &H3
Declare Function WinHelp Lib "User" (ByVal hWnd%, ByVal FileName$, ByVal Cmd%, ByVal dwData As Long) As Integer
Sub CenterWindow (Source As Form)
' Placera dialogen snyggt
Dim L%, T%
L = (Screen.Width - Source.Width) \ 2
T = (Screen.Height - Source.Height) \ 2
'If Not Source.MDIChild Then
' L = L + Source.Parent.Left
' T = T + Source.Parent.Top
'End If
Source.Move L, T
End Sub